package com.xx.mapper;

import com.xx.entity.Suppliers;
import com.xx.vo.SuppliersListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface SuppliersMapper{

    default Suppliers queryById(@Param("supplierId") Integer supplierId) {
        return null;
    }

    List<Suppliers> queryAllByLimit(@Param("suppliers") Suppliers suppliers, @Param("pageNum") Integer pageNum);

    long count(@Param("suppliers") Suppliers suppliers);

    int insert(@Param("suppliers") Suppliers suppliers);

    int insertBatch(@Param("entities") List<Suppliers> entities);

    int insertOrUpdateBatch(@Param("entities") List<Suppliers> entities);

    int update(@Param("suppliers") Suppliers suppliers);

    int deleteById(@Param("supplierId") Integer supplierId);

    List<SuppliersListVO> queryAll();
}
